package com.duowei.diandan.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.duowei.diandan.db.entry.Dccz;

@Dao
public interface DcczDao {

    @Query("SELECT * FROM dccz LIMIT 1")
    Dccz findOne();

    @Insert
    void insert(Dccz item);

    @Query("DELETE FROM dccz")
    void deleteAll();
}
